<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改产品外包往返记录')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-partoutsourcecomegorecord-edit" th:object="${uuidList}">
            <input id="uuidList" name="uuidList" type="hidden" th:field="*{id}">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">指定场所：</label>
                <div class="col-sm-8">
                    <select name="appointSite" class="form-control" th:with="type=${appointSite}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">预计返回日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="planReturnDate" class="form-control" placeholder="yyyy-MM-dd" type="text" required>-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">预计外包周期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="planOutsourceCycleTime" class="form-control" type="number" required>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">快递单号：</label>
                <div class="col-sm-8">
                    <input name="expressNumber" class="form-control" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">备注外包问题：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="issueNotes" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "outsource/partoutsourcecomegorecord";
        $("#form-partoutsourcecomegorecord-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-partoutsourcecomegorecord-edit').serialize());
            }
        }

        $("input[name='planReturnDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>